<template>
    <div class="loginOuter">
        <div class="login">
            <h1>用户登录</h1>
            <el-form ref="form" :model="form" label-width="100px">
                <el-form-item label="用户名：">
                    <el-input v-model="form.name" placeholder="请输入用户名"></el-input>
                </el-form-item>
                <el-form-item label="密码：">
                    <el-input type="password" v-model="form.pwd"  placeholder="请输入密码"></el-input>
                </el-form-item>
                <el-form-item>
                    <el-button type="primary" @click="login" id="denglu">登录</el-button>
                </el-form-item>
                <el-form-item>
                    <el-button @click="goindex" id="left">返回首页</el-button>
                    <el-button @click="goregister" id="right">还没有账号？注册</el-button>
                </el-form-item>
            </el-form>
        </div>
    </div>

</template>

<script src="../assets/js/LoginView.js"></script>
<style src="../assets/css/LoginView.css" scoped>

</style>